export const knwlgType = {
    structuring: "0", //结构化知识
    qa: "1", // 问答知识
    media: "2", // 多媒体知识
};

// 原子类型
export const TEM_TYPE = {
    input: {
        "orderNo": "1",
        "label": "文本类型",
        "key": "1",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_input_content"
    },
    radio: {
        "orderNo": "2",
        "label": "单选类型",
        "key": "2",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_radio_content"
    },
    checkbox: {
        "orderNo": "3",
        "label": "多选类型",
        "key": "3",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_checkbox_content"
    },
    richText: {
        "orderNo": "4",
        "label": "混排类型",
        "key": "4",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_richText_content"
    },
    time: {
        "orderNo": "5",
        "label": "时间类型",
        "key": "5",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_time_content"
    },
    date: {
        "orderNo": "6",
        "label": "日期类型",
        "key": "6",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_date_content"
    },
    dateTime: {
        "orderNo": "7",
        "label": "日期时间类型",
        "key": "7",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_dateTime_content"
    },
    file: {
        "orderNo": "10",
        "label": "附件类型",
        "key": "10",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_file_content"
    },
    number: {
        "orderNo": "11",
        "label": "数字类型",
        "key": "11",
        "typeId": "NGKM.ATOM.PARAM.TYPE",
        "knowledge_key": "_number_content"
    }
}

export const TIME_OPTIONS = {
    second: {
        "key": "1",
        "label": "秒",
        "orderNo": "1"
    },
    min: {
        "key": "2",
        "label": "分钟",
        "orderNo": "2"
    },
    hour: {
        "key": "3",
        "label": "小时",
        "orderNo": "3"
    },
    day: {
        "key": "4",
        "label": "天",
        "orderNo": "4"
    },
    month: {
        "key": "5",
        "label": "月",
        "orderNo": "5"
    },
    threeMonth: {
        "key": "6",
        "label": "季度",
        "orderNo": "6"
    },
    halfYear: {
        "key": "7",
        "label": "半年",
        "orderNo": "7"
    },
    year: {
        "key": "8",
        "label": "年",
        "orderNo": "8"
    },
    twoYear: {
        "key": "9",
        "label": "2年",
        "orderNo": "9"
    },
    threeYear: {
        "key": "10",
        "label": "3年",
        "orderNo": "10"
    },
}

export const KNWLG_TYPE = {
    STRUCTKNWLG: "0", // 结构化知识
    QAKNWLG: "1", // 问答知识
    MULKNWLG: "2", // 多媒体知识
}

export const KNWLG_TYPE_OPTIONS = {
    [KNWLG_TYPE.STRUCTKNWLG]: {
        key: KNWLG_TYPE.STRUCTKNWLG,
        label: '结构化知识',
    },
    [KNWLG_TYPE.QAKNWLG]: {
        key: KNWLG_TYPE.QAKNWLG,
        label: '问答知识',
    },
    [KNWLG_TYPE.MULKNWLG]: {
        key: KNWLG_TYPE.MULKNWLG,
        label: '多媒体知识',
    }
}

// 知识地区类型
export const KNWLG_REGN_TYPE = {
    COUNTRY: "1", // 国家
    PROVENCE: "2", // 省份
    REGION: "3",
}

// 操作类型编码
export const NGKM_KNOWLEDGE_OPERTYPE = {
    INSERT : "1",//新增
    UPDATE : "2",//发起更新
    DELETE : "3",//删除
    REVERT : "4",//撤回
    REJECT : "5",//驳回
    PASS : "6"//审核通过
}
// 知识状态
export const KNWLG_STATUS = [
    {
        "key": "5",
        "value": "1A",
        "label": "新建待审核"
    },
    {
        "key": "1",
        "value": "1E",
        "label": "新建待提交"
    },
    {
        "key": "8",
        "value": "1P",
        "label": "新增已发布"
    },
    {
        "key": "6",
        "value": "2A",
        "label": "更新待审核"
    },
    {
        "key": "2",
        "value": "2E",
        "label": "更新待提交"
    },
    {
        "key": "9",
        "value": "2P",
        "label": "更新已发布"
    },
    {
        "key": "7",
        "value": "3A",
        "label": "删除待审核"
    },
    {
        "key": "12",
        "value": "3E",
        "label": "删除待发布"
    },
    {
        "key": "10",
        "value": "D",
        "label": "回收站"
    },
    {
        "key": "11",
        "value": "DL",
        "label": "彻底删除"
    },
    {
        "key": "12",
        "value": "PR",
        "label": "预采编"
    },
    {
        "key": "13",
        "value": "1R",
        "label": "审核待发布"
    }
]

export const PROBLEM_TYPE_OPTIONS = [
    { label: "描述错误", value: "1" },
    { label: "错别字", value: "2" },
    { label: "已过期内容", value: "3" },
];